package jhsys.mc.rs.msg;

public class NOTIFY {
	private String HTTPTAG = "NOTIFY * HTTP/1.1";
	private String HOST = "239.255.255.250:1900";
	private String CACHECONTROL = "1800";
	private String LOCATION = "http://192.168.1.1:1900/igd.xml";
	private String NT = "uuid:upnp-InternetGatewayDevice-192168115678900001";
	private String NTS = "ssdp:alive";
	private String SERVER = " TP-LINK Wireless Router WR541G/5http://www.tp-link.com, UPnP/1.0";
	private String USN = "uuid:upnp-InternetGatewayDevice-192168115678900001";
	private static final String END = "\r\n";

	public String toString() {
//		String result = null;
//		result = HTTPTAG + END + "HOST:" + HOST + END
//				+ "CACHE-CONTROL:max-age=" + CACHECONTROL + END + "LOCATION:"
//				+ LOCATION + END + "NT:" + NT + END + "NTS:" + NTS + END
//				+ "SERVER:" + SERVER + END + "USN:" + USN + END + END;
		StringBuffer buffer=new StringBuffer();
		buffer.append(HTTPTAG + END);
		buffer.append("HOST:" + HOST + END);
		buffer.append("CACHE-CONTROL:max-age=" + CACHECONTROL + END);
		buffer.append("LOCATION:" + LOCATION + END);
		buffer.append("NT:" + NT + END);
		buffer.append("NTS:" + NTS + END);
		buffer.append("SERVER:" + SERVER + END);
		buffer.append("USN:" + USN + END + END);
		
		
		return buffer.toString();
	}

	public String getHTTPTAG() {
		return HTTPTAG;
	}

	public void setHTTPTAG(String hTTPTAG) {
		HTTPTAG = hTTPTAG;
	}

	public String getHOST() {
		return HOST;
	}

	public void setHOST(String hOST) {
		HOST = hOST;
	}

	public String getCACHECONTROL() {
		return CACHECONTROL;
	}

	public void setCACHECONTROL(String cACHECONTROL) {
		CACHECONTROL = cACHECONTROL;
	}

	public String getLOCATION() {
		return LOCATION;
	}

	public void setLOCATION(String lOCATION) {
		LOCATION = lOCATION;
	}

	public String getNT() {
		return NT;
	}

	public void setNT(String nT) {
		NT = nT;
	}

	public String getNTS() {
		return NTS;
	}

	public void setNTS(String nTS) {
		NTS = nTS;
	}

	public String getSERVER() {
		return SERVER;
	}

	public void setSERVER(String sERVER) {
		SERVER = sERVER;
	}

	public String getUSN() {
		return USN;
	}

	public void setUSN(String uSN) {
		USN = uSN;
	}

}
